﻿@model JChatAdmin.Models.UserModel.UserModel
@{
    ViewBag.Title = "Create user";
    Layout = "~/Views/Shared/_Layout.cshtml";
}
<div id="content" class="roundedBorders">
    <div id="title" class="b2">
        <h2>Create</h2>
    </div>
    @if (System.Web.HttpContext.Current.Session["h"] != null)
    {
        <div>bi trung</div>
    }
    <div id="innerContent">
        @using (Html.BeginForm())
        {
            <fieldset>
                <legend>User Information</legend>
                    <table style="margin-left:10px;">
                        <tr>
                            <td>
                                <div>
                                    @Html.LabelFor(model => model.RealName)
                                </div>
                                <div>
                                    @Html.LabelFor(model => model.UserName)
                                </div>
                                <div>
                                    @Html.LabelFor(model => model.Password)
                                </div>
                                <div>
                                    @Html.LabelFor(model => model.PasswordTemp)
                                </div>
                                <div>
                                    @Html.Label("Sex")
                                </div>
                                <div>
                                    @Html.LabelFor(model => model.Email)
                                </div>
                                <div>
                                    @Html.LabelFor(model => model.Address)
                                </div>

                                <div>
                                    @Html.LabelFor(model =>model.BirthDay)
                                </div>
                                <div>
                                    @Html.Label("City")
                                </div>
                                <div>
                                    @Html.Label("Country")
                                </div>
                            </td>
                            <td>
                                <div>
                                    @Html.TextBoxFor(model => model.RealName)
                                </div>
                                <div>
                                    @Html.TextBoxFor(model => model.UserName)
                                </div>
                                <div>
                                    @Html.TextBoxFor(model => model.Password)
                                </div>
                                <div>
                                    @Html.TextBoxFor(model => model.PasswordTemp)
                                </div>
                                <div>
                                    @Html.DropDownListFor(m => m.Sex, Model.SelectSex, "---Choose---")
                                </div>
                                <div>
                                    @Html.TextBoxFor(model => model.Email)
                                </div>
                                <div>
                                    @Html.TextBoxFor(model => model.Address)
                                </div>
                                <div>
                                    @Html.TextBoxFor(model => model.BirthDay)
                                </div>
                                <div>
                                    @Html.DropDownListFor(m => m.CityID,Model.SelectListCity,"---Choose---")
                                </div>
                                <div>
                                    @Html.DropDownListFor(m => m.CountryID,Model.SelectListCountry,"---Choose---")
                                </div>
                            </td>
                        </tr>
                    </table>
                    <input type="submit" value="Create" style="margin-left:10px;"/>
            </fieldset>
        }
    </div>
</div>

